package com.todo.delicacy.iface.frontend.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2024/6/4 20:30
 * @description
 */
@Data
@Schema(name = "查询美食名称入参", description = "查询美食名称入参")
public class QueryFoodListByNameParam {

    @Schema(name = "美食名称", description = "美食名称")
    private String name;

    @Schema(name = "餐厅id", description = "餐厅id")
    private Long restaurantId;


    public boolean baseCheck() {
        if (name == null || restaurantId == null){
            return false;
        }
        return true;
    }
}
